home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / comm / conex61d.zip / TECH.REF < prev    next >
Text File  |  1992-03-13  |  32KB  |  929 lines

  1.  
  2.  
  3.               Technical Reference
  4.  
  5.                    CONEX 6.1
  6.  
  7.  
  8.                ┌───────────────────────┐
  9.                │  ┌─────────────────┐  │
  10.                │  │    ports        │  │
  11.                │  └─────────────────┘  │
  12.                └───────────────────────┘
  13.  
  14. COM
  15. ────────────────────────────────────────────────────────────────────
  16.  
  17.  - by default COM 1/3 use interrupt 4, COM 2/4 use interrupt 3
  18.  - base port registers are read from BIOS communication area
  19.  
  20.  
  21. port *F8 - Transmit/Receive Buffer  (read/write)
  22.        Baud Rate Divisor LSB if bit 7 of LCR is set  (read/write)
  23.  
  24.  
  25. port *F9 - Interrupt Enable Register - IER  (read/write)
  26.        Baud Rate Divisor MSB if bit 7 of LCR is set  (read/write)
  27.  
  28.     │7│6│5│4│3│2│1│0│
  29.          │ │ │ └──── 1 = enable data available int
  30.          │ │ └───── 1 = enable THRE interrupt
  31.          │ └────── 1 = enable lines status interrupt
  32.          └─────── 1 = enable modem-status-change interrupt
  33.  
  34.  
  35.             Baud Rate Divisor Table
  36.  
  37.              Baud Rate                Baud Rate
  38.     Baud Rate          Divisor          Baud Rate      Divisor
  39.  
  40.        50           2304         2400        48
  41.        75           1536         3600        32
  42.       110           1047         4800        24
  43.       150        768         9600        12
  44.       200        576        19200         6
  45.       300        384        38400         3
  46.       600        192        57600         2
  47.      1200         96           115200         1
  48.      1800         64
  49.  
  50.  
  51.  
  52.  
  53. port *FA - Interrupt Identification Register - IIR  (read only)
  54.  
  55.     │7│6│5│4│3│2│1│0│
  56.            │ │ └──── 1 = no int. pending, 0=int. pending
  57.            └─┴───── Interrupt Id bits (see below)
  58.  
  59.        Bits
  60.     21     Meaning        Priority     To reset
  61.     00  modem-status-change      lowest     read MSR
  62.     01  transmit-register-empty  low     read IIR / write THR
  63.     10  data-available         high     read rec buffer reg
  64.     11  line-status          highest     read LSR
  65.  
  66.  
  67.  
  68. port *FB - Line Control Register - LCR    (read/write)
  69.  
  70.     │7│6│5│4│3│2│1│0│
  71.      │ │ │ │ │ │ └─┴──── word length select bits (see below)
  72.      │ │ │ │ │ └─────── 0 = 1 stop bit, 1 = 1.5 or 2  (see note)
  73.      │ │ │ │ └──────── 0 = no parity, 1 = parity (PEN)
  74.      │ │ │ └───────── 0 = odd parity, 1 = even (EPS)
  75.      │ │ └────────── 0 = parity disabled, 1 = enabled
  76.      │ └─────────── 0 = turn break off, 1 = force spacing break state
  77.      └──────────── 1 = baud rate divisor (DLAB)
  78.  
  79.        Bits
  80.     10     Word length bits
  81.     00 = 5 bits per character
  82.     01 = 6 bits per character
  83.     10 = 7 bits per character
  84.     11 = 8 bits per character
  85.  
  86.  
  87. port *FC - Modem Control Register - MCR  (read/write)
  88.  
  89.     │7│6│5│4│3│2│1│0│
  90.          │ │ │ └──── 1 = activate DTR
  91.          │ │ └───── 1 = activate RTS
  92.          │ └────── OUT1
  93.          └─────── OUT2
  94.  
  95.  
  96. port *FD - Line Status Register - LSR  (read only)
  97.  
  98.     │7│6│5│4│3│2│1│0│
  99.        │ │ │ │ │ │ └──── 1 = data ready
  100.        │ │ │ │ │ └───── 1 = overrun error (OE)
  101.        │ │ │ │ └────── 1 = parity error (PE)
  102.        │ │ │ └─────── 1 = framing error (FE)
  103.        │ │ └──────── 1 = break interrupt  (BI)
  104.        │ └───────── 1 = transmitter holding register empty (THRE)
  105.        └────────── 1 = transmitter shift register empty (TSRE)
  106.  
  107.  
  108. port *FE - Modem Status Register - MSR (read only)
  109.  
  110.     │7│6│5│4│3│2│1│0│
  111.      │ │ │ │ │ │ │ └──── 1 = DCTS  Delta CTS  (CTS changed) 
  112.      │ │ │ │ │ │ └───── 1 = DDSR  Delta DSR  (DSR changed)
  113.      │ │ │ │ │ └────── 1 = RI ring indicator changed
  114.      │ │ │ │ └─────── 1 = DDCD  Delta Data Carrier Detect (DCD changed)
  115.      │ │ │ └──────── 1 = CTS
  116.      │ │ └───────── 1 = DSR
  117.      │ └────────── 1 = ring indicator (RI)
  118.      └─────────── 1 = receive line signal detect
  119.  
  120.  
  121.  
  122.  
  123.  
  124. INT 14H
  125. ────────────────────────────────────────────────────────────────────
  126.  
  127. INT 14,0 - Initialize Communications Port Parameters
  128.  
  129.     AH = 00
  130.     AL = parms for initialization (see tables below)
  131.     DX = zero based serial port number (0-1) (0-3 for AT)
  132.  
  133.     │7│6│5│4│3│2│1│0│  AL               Parity (bits 4 & 3)
  134.      │ │ │ │ │ │ └─┴──── word length bits           00 = none
  135.      │ │ │ │ │ └─────── stop bits flag           01 = odd
  136.      │ │ │ └─┴──────── parity bits               10 = none
  137.      └─┴─┴─────────── baud rate bits           11 = even
  138.  
  139.        Word length (bits 1 & 0)        Stop bit count (bit 2)
  140.  
  141.        10 = 7 bits                  0 = 1 stop bit
  142.        11 = 8 bits                  1 = 2 stop bits
  143.  
  144.        Baud rate (bits 7, 6 & 5)
  145.  
  146.     000 = 110 baud        100 = 1200 baud
  147.     001 = 150 baud        101 = 2400 baud
  148.     010 = 300 baud        110 = 4800 baud
  149.     011 = 600 baud        111 = 9600 baud
  150.  
  151.  
  152.     on return:
  153.     AH = port status
  154.     AL = modem status
  155.  
  156.  
  157.  
  158. INT 14,1 - Send Character to Communications Port
  159.  
  160.     AH = 01
  161.     AL = character to send
  162.     DX = zero based serial port number (0-1) (0-3 for AT)
  163.  
  164.  
  165.     on return:
  166.     AH = port status
  167.          bit 7=0 indicates success
  168.          bit 7=1 indicates error, bits 0-6 indicate cause
  169.  
  170.  
  171. INT 14,2 - Receive Character from Communications Port
  172.  
  173.     AH = 02
  174.     DX = zero based serial port number (0-1) (0-3 for AT)
  175.  
  176.  
  177.     on return:
  178.     AH = port status
  179.          bit 7 = 0 if successful
  180.          bit 7 = 1 if call failed
  181.     AL = character received if call was success
  182.  
  183.  
  184. INT 14,3 - Get Serial Port Status
  185.  
  186.     AH = 03
  187.     DX = zero based serial port number (0-1) (0-3 for AT)
  188.  
  189.     on return:
  190.     AH = port status
  191.     AL = modem status
  192.  
  193.  
  194. INT 14,4 - Send Break (not part of BIOS)
  195.  
  196.     AH = 04
  197.  
  198.  
  199.  
  200.  
  201.  
  202.                ┌───────────────────────┐
  203.                │  ┌─────────────────┐  │
  204.                │  │  VT102 Commands │  │
  205.                │  └─────────────────┘  │
  206.                └───────────────────────┘
  207.  
  208.  
  209. Cursor movement
  210. ────────────────────────────────────────────────────────────────────
  211. ESC [ #n A        move cursor up #n lines
  212. ESC [ #n B        move cursor down #n lines
  213. ESC [ #n C        move cursor right #n columns
  214. ESC [ #n D        move cursor left #n columns
  215. ESC [ #l ; #c H  or
  216. ESC [ #l ; #c f     move cursor to line #r and column #c
  217. ESC D            move cursor down one line with scroll
  218. ESC E            move cursor to beginning of next line with scroll
  219. ESC M            move cursor up one line with scroll
  220. ESC 7            save cursor attributes
  221. ESC 8            restore cursor attributes
  222.  
  223.    - Normal screen size of an VT100 terminal is 24 lines X 80 columns.
  224.      The upper line in CONEX is used as status line, so that the cursor
  225.      position (line 1, column 1) gives (line 2, column 1) on screen.
  226.      The upper line cannot be referenced by any VT100 commands!
  227.  
  228.  
  229. character attributes
  230. ────────────────────────────────────────────────────────────────────
  231. ESC [ m
  232. ESC [ 0 m        all character attributes off
  233. ESC [ 1 m        make all following characters bold
  234. ESC [ 4 m        underline all following characters
  235. ESC [ 5 m        let all following characters blink
  236. ESC [ 7 m        inverse all following characters
  237. ESC [ a1 ; a2 ; ... m    set character attributes a1, a2 ...
  238.  
  239.    - since characters cannot be underlined on color screens
  240.      they are displayed in special colors
  241.  
  242.  
  243. erase and insert characters
  244. ────────────────────────────────────────────────────────────────────
  245. ESC [ K
  246. ESC [ 0 K        erase from cursor position to end of line
  247. ESC [ 1 K        erase from beginning of line to cursor position
  248. ESC [ 2 K        erase entire line
  249.  
  250. ESC [ J
  251. ESC [ 0 J        erase from cursor position to end of screen
  252. ESC [ 1 J        erase from beginning of screen to cursor position
  253. ESC [ 2 J        erase entire screen
  254.  
  255. ESC [ #n P        delete #n characters following cursor position
  256. ESC [ #n M        delete #n lines at cursor
  257. ESC [ #n L              insert #n lines at cursor position
  258.  
  259.  
  260. tabulators
  261. ────────────────────────────────────────────────────────────────────
  262. ESC H            set tabulator at cursor position
  263. ESC [ g
  264. ESC [ 0 g        delete tabulator at cursor position
  265. ESC [ 3 g        delete all tabulators
  266.  
  267.    - tabulators are preset to positions 9, 17, 24 ...
  268.  
  269.  
  270. modes
  271. ────────────────────────────────────────────────────────────────────
  272. ESC [ ? 1 h        set cursor keys application mode
  273. ESC [ ? 1 l        set cursor key mode (default)
  274.  
  275.    - The cursor keys UP, DOWN, LEFT, RIGHT send different code according
  276.      to cursor key mode set.
  277.      (see table 1)
  278.  
  279. ESC =            set application keypad mode
  280. ESC >            set numeric keypad mode (default)
  281.  
  282.    - If the numeric keypad is activated, i.e. NUM LOCK is pressed,
  283.      numbers or control functions are generated by the numeric keypad.
  284.      (see table 2)
  285.  
  286. ESC [ ? 6 h        relative origin mode
  287. ESC [ ? 6 l        absolute origin mode (default)
  288.  
  289.    - In absolute origin mode line numbers are counted relative to top
  290.      margin of screen, the cursor can be moved outside the scrolling
  291.      region. In relative mode line numbers are relative to top margin of
  292.      scrolling region and the cursor cannot be moved outside.
  293.  
  294. ESC [ ? 7 h        autowrap mode on (default)
  295. ESC [ ? 7 l        autowrap mode off
  296.  
  297.    - Characters at the end of line automatically wrap into the next line
  298.      if autowrap mode is on.
  299.  
  300. ESC [ 4 h        insert mode
  301. ESC [ 4 l        overwrite mode (default)
  302.  
  303.     - In Insert mode all characters from cursor position up to end of
  304.       line are move right by one place and the character is inserted.
  305.       The last character in line is always lost.
  306.  
  307.  
  308. scrolling region
  309. ────────────────────────────────────────────────────────────────────
  310. ESC [ #t ; #b r     set scrolling region top row = #t, bottom row = #b
  311.  
  312.  
  313. character sets
  314. ────────────────────────────────────────────────────────────────────
  315. ESC ( A         select UK character set as G0
  316. ESC ) A         select UK character set as G1
  317. ESC ( B         select ASCII character set as G0
  318. ESC ) B         select ASCII character set as G1
  319. ESC ( K         select german character set as G0
  320. ESC ) K         select german character set as G1
  321. ESC ( O         select graphic character set as G0
  322. ESC ) O         select graphic character set as G1
  323.  
  324. SI (0fh)        activate G0
  325. SO (10h)        activate G1
  326.  
  327.  
  328.         ASCII, UK, german, graphic character set
  329.          ┌────────────┬─────────────┬─────────────────┐
  330.          │ dec ASC UK │ dec ASC ger │ dec ASC ger gph │
  331.          ├────────────┼─────────────┼─────────────────┤
  332.          │ 32      │ 64    @    │ 96  `          │
  333.          │ 33  !      │ 65    A    │ 97  a       ▒   │
  334.          │ 34  "      │ 66  B       │ 98  b          │
  335.          │ 35  #   £  │ 67    C    │ 99  c          │
  336.          │ 36  $      │ 68    D    │ 100 d          │
  337.          │ 37  %      │ 69    E    │ 101 e          │
  338.          │ 38  &      │ 70    F    │ 102 f       °   │
  339.          │ 39  '      │ 71  G       │ 103 g       ±   │
  340.          │ 40  (      │ 72    H    │ 104 h          │
  341.          │ 41  )      │ 73    I    │ 105 i          │
  342.          │ 42  *      │ 74    J    │ 106 j       ┘   │
  343.          │ 43  +      │ 75    K    │ 107 k       ┐   │
  344.          │ 44  ,      │ 76    L    │ 108 l       ┌   │
  345.          │ 45  -      │ 77    M    │ 109 m       └   │
  346.          │ 46  .      │ 78    N    │ 110 n       ┼   │
  347.          │ 47  /      │ 79    O    │ 111 o       ─   │
  348.          │ 48  0      │ 80    P    │ 112 p       ─   │
  349.          │ 49  1      │ 81    Q    │ 113 q       ─   │
  350.          │ 50  2      │ 82    R    │ 114 r       ─   │
  351.          │ 51  3      │ 83    S    │ 115 s       ─   │
  352.          │ 52  4      │ 84    T    │ 116 t       ├   │
  353.          │ 53  5      │ 85    U    │ 117 u       ┤   │
  354.          │ 54  6      │ 86    V    │ 118 v       ┴   │
  355.          │ 55  7      │ 87    W    │ 119 w       ┬   │
  356.          │ 56  8      │ 88    X    │ 120 x       │   │
  357.          │ 57  9      │ 89    Y    │ 121 y       ≤   │
  358.          │ 58  :      │ 90    Z    │ 122 z       ≥   │
  359.          │ 59  ;      │ 91    [   Ä    │ 123 {  ä    π   │
  360.          │ 60  <      │ 92    \   Ö    │ 124 |  ö    ╪   │
  361.          │ 61  =      │ 93    ]   Ü    │ 125 }  ü    £   │
  362.          │ 62  >      │ 94    ^    │ 126 ~  ß    ∙   │
  363.          │ 63  ?      │ 95    _    │ 127        │
  364.          └────────────┴─────────────┴─────────────────┘
  365.  
  366.  
  367.               Multinational/ISO character set
  368.    ┌─────────────────────────┬────────────────────┬───────────────────┐
  369.    │ dec    meaning         │ dec    meaning      │ dec    meaning    │
  370.    ├─────────────────────────┼────────────────────┼───────────────────┤
  371.    │ 160 ▓  fill character   │ 192 A  `A      │ 224 à  `a          │
  372.    │ 161 ¡  ! inverted         │ 193 A  'A          │ 225 á  'a         │
  373.    │ 162 ¢  cent sign         │ 194 A  ^A      │ 226 â  ^a          │
  374.    │ 163 £  pound sign         │ 195 A  ~A      │ 227 a  ~a          │
  375.    │ 164   sun (ISO)         │ 196 Ä  "A          │ 228 ä  "a         │
  376.    │ 165 ¥  Yen sign         │ 197 Å  °A      │ 229 å  °a          │
  377.    │ 166 |  vert. bar (ISO)  │ 198 Æ  AE      │ 230 æ  ae          │
  378.    │ 167   paragraph sign   │ 199 Ç  ,C      │ 231 ç  ,c          │
  379.    │ 168   sun          │ 200 E  `E      │ 232 è  `e          │
  380.    │ 169 C  Copyright symbol │ 201 É  'E          │ 233 é  'e         │
  381.    │ 170 ª  feminine ord.    │ 202 E  ^E      │ 234 ê  ^e          │
  382.    │ 171 «  <<             │ 203 E  "E          │ 235 ë  "e         │
  383.    │ 172 ¬  not sign (ISO)   │ 204 I  `I      │ 236 ì  `i          │
  384.    │ 173 ─  dash (ISO)         │ 205 I  'I          │ 237 í  'i         │
  385.    │ 174 R  registered (ISO) │ 206 I  ^I      │ 238 î  ^i          │
  386.    │ 175 -  hor. bar (ISO)   │ 207 I  "I          │ 239 ï  "i         │
  387.    │ 176 °  degree sign      │ 208 D  -D (ISO)      │ 240 d  d (ISO)    │
  388.    │ 177 ±  plus/minus         │ 209 Ñ  ~N      │ 241 ñ  ~n          │
  389.    │ 178 ²  superscript 2    │ 210 O  `O      │ 242 ò  `o          │
  390.    │ 179 ⁿ  superscript 3    │ 211 O  'O          │ 243 ó  'o         │
  391.    │ 180 '  ' (ISO)          │ 212 O  ^O          │ 244 ô  ^o         │
  392.    │ 181 µ  greek my         │ 213 O  ~O      │ 245 o  ~o          │
  393.    │ 182   paragraph P      │ 214 Ö  "O          │ 246 ö  "o         │
  394.    │ 183 ∙  center dot         │ 215 Ö  OE      │ 247 ö  oe          │
  395.    │ 184 ,  cedilla (ISO)    │ 216 φ  /O      │ 248 φ  /o          │
  396.    │ 185 ┐  upper 1         │ 217 U  `U      │ 249 ù  `u          │
  397.    │ 186 º  masculine ord.   │ 218 U  'U          │ 250 ú  'u         │
  398.    │ 187 »  >>             │ 219 U  ^U      │ 251 û  ^u          │
  399.    │ 188 ¼  1/4          │ 220 Ü  "U          │ 252 ü  "u         │
  400.    │ 189 ½  1/2          │ 221 Y  "Y          │ 253 ÿ  "y         │
  401.    │ 190 ¿  3/4 (ISO)         │ 222 P  Thorn (ISO) │ 254 P  thorn(ISO) │
  402.    │ 191 ¿  ? inverted         │ 223 ß  sharp s      │ 255 ÿ  "y (ISO)   │
  403.    └─────────────────────────┴────────────────────┴───────────────────┘
  404.  
  405.  
  406. keys
  407. ────────────────────────────────────────────────────────────────────
  408.  
  409.                  Function keys
  410.              ┌──────────┬────────┬───────┐
  411.              │ original │ IBM PC │ sends │
  412.              │ DEC key    │  key     │     │
  413.              ├──────────┼────────┼───────┤
  414.              │    PF1    │  F1     │ ESC P │
  415.              │    PF2    │  F2     │ ESC Q │
  416.              │    PF3    │  F3     │ ESC R │
  417.              │    PF4    │  F4     │ ESC S │
  418.              └──────────┴────────┴───────┘
  419.  
  420.  
  421.              Numerical keypad keys
  422.        ┌──────────┬────────┬─────────────┬─────────────┐
  423.        │ original │ IBM PC │  sends in   │    sends in   │
  424.        │ DEC key  │ key on │  numerical  │ application │
  425.        │          │ keypad │ keypad mode │      mode       │
  426.        ├──────────┼────────┼─────────────┼─────────────┤
  427.        │  0       │   0    │     0         │     ESC O p   │
  428.        │  1       │   1    │     1         │     ESC O q   │
  429.        │  2       │   2    │     2         │     ESC O r   │
  430.        │  3       │   3    │     3         │     ESC O s   │
  431.        │  4       │   4    │     4         │     ESC O t   │
  432.        │  5       │   5    │     5         │     ESC O u   │
  433.        │  6       │   6    │     6         │     ESC O v   │
  434.        │  7       │   7    │     7         │     ESC O w   │
  435.        │  8       │   8    │     8         │     ESC O x   │
  436.        │  9       │   9    │     9         │     ESC O y   │
  437.        │  -       │   -    │     -         │     ESC O m   │
  438.        │  ,       │   *    │     *         │     ESC O l   │
  439.        │  .       │   .    │     .         │     ESC O n   │
  440.        │  Return  │   +    │     +         │     ESC O M   │
  441.        └──────────┴────────┴─────────────┴─────────────┘
  442.  
  443.  
  444.                   Cursor keys
  445.        ┌────────────┬─────────┬───────────┬──────────────┐
  446.        │  original    │ IBM PC  │  cursor   │ application  │
  447.        │  DEC key    │  key      │   mode    │    mode      │
  448.        ├────────────┼─────────┼───────────┼──────────────┤
  449.        │    up    │  up      │  ESC [ A  │   ESC O A    │
  450.        │    down    │  down   │  ESC [ B  │   ESC O B    │
  451.        │    right    │  right  │  ESC [ C  │   ESC O C    │
  452.        │    left    │  left   │  ESC [ D  │   ESC O D    │
  453.        └────────────┴─────────┴───────────┴──────────────┘
  454.  
  455.  
  456.                Edit keys (vt220)
  457.           ┌─────────────┬────────┬───────────┐
  458.           │   original    │ IBM PC │   sends   │
  459.           │   DEC key    │  key     │         │
  460.           ├─────────────┼────────┼───────────┤
  461.           │ Find    │  Home  │ ESC [ 1 ~ │
  462.           │ Insert Here │  Ins     │ ESC [ 2 ~ │
  463.           │ Remove    │  Del     │ ESC [ 3 ~ │
  464.           │ Select    │  End     │ ESC [ 4 ~ │
  465.           │ Prev Scrn    │  PgUp  │ ESC [ 5 ~ │
  466.           │ Next Scrn    │  PgDn  │ ESC [ 6 ~ │
  467.           └─────────────┴────────┴───────────┘
  468.  
  469.  
  470.  
  471.  
  472.          ┌───────────────────────────────────┐
  473.          │ ┌───────────────────────────────┐ │
  474.          │ │  Tektronix 4010/4014 Commands │ │
  475.          │ └───────────────────────────────┘ │
  476.          └───────────────────────────────────┘
  477.  
  478.  
  479.  
  480. RS P1           - draw point P1 at (x,y)
  481. ────────────────────────────────────────────────────────────────────
  482.  
  483.  
  484. FS P1 P2 P3 ...    - draw line from point P1 to P2 to P3 ...
  485. ────────────────────────────────────────────────────────────────────
  486.  
  487.  
  488.          P1, P2, P3 consist of the following 4/5 bytes
  489.  
  490.     highy        │7│6│5│4│3│2│1│0│
  491.              │ │ │ │ │ │ │ └── Bit 7 of y
  492.              │ │ │ │ │ │ └─── Bit 8 of y
  493.              │ │ │ │ │ └──── Bit 9 of y
  494.              │ │ │ │ └───── Bit 10 of y
  495.              │ │ │ └────── Bit 11 of y
  496.              │ │ └─────── 1 always
  497.              │ └──────── 0 always
  498.              └───────── 0 always
  499.  
  500.     extra        │7│6│5│4│3│2│1│0│    if tektronix 4014
  501.              │ │ │ │ │ │ │ └── Bit 0 of x
  502.              │ │ │ │ │ │ └─── Bit 1 of x
  503.              │ │ │ │ │ └──── Bit 0 of y
  504.              │ │ │ │ └───── Bit 1 of y
  505.              │ │ │ └────── 0 always
  506.              │ │ └─────── 1 always
  507.              │ └──────── 1 always
  508.              └───────── 0 always
  509.  
  510.     lowy        │7│6│5│4│3│2│1│0│
  511.              │ │ │ │ │ │ │ └── Bit 2 of y
  512.              │ │ │ │ │ │ └─── Bit 3 of y
  513.              │ │ │ │ │ └──── Bit 4 of y
  514.              │ │ │ │ └───── Bit 5 of y
  515.              │ │ │ └────── Bit 6 of y
  516.              │ │ └─────── 1 always
  517.              │ └──────── 1 always
  518.              └───────── 0 always
  519.  
  520.     highx        │7│6│5│4│3│2│1│0│
  521.              │ │ │ │ │ │ │ └── Bit 7 of x
  522.              │ │ │ │ │ │ └─── Bit 8 of x
  523.              │ │ │ │ │ └──── Bit 9 of x
  524.              │ │ │ │ └───── Bit 10 of x
  525.              │ │ │ └────── Bit 11 of x
  526.              │ │ └─────── 0 always
  527.              │ └──────── 1 always
  528.              └───────── 0 always
  529.  
  530.     lowx        │7│6│5│4│3│2│1│0│
  531.              │ │ │ │ │ │ │ └── Bit 2 of x
  532.              │ │ │ │ │ │ └─── Bit 3 of x
  533.              │ │ │ │ │ └──── Bit 4 of x
  534.              │ │ │ │ └───── Bit 5 of x
  535.              │ │ │ └────── Bit 6 of x
  536.              │ │ └─────── 0 always
  537.              │ └──────── 1 always
  538.              └───────── 0 always
  539.  
  540.  
  541.    - In Tektronix 4010 emulation extra byte is not sent.
  542.    - If a part of P1 and P2 is the same it may be dropped in P2 as
  543.      long as the sequence is clear, lowx must always be sent.
  544.  
  545.  
  546. ESC ENQ        - enquire for terminal status
  547. ────────────────────────────────────────────────────────────────────
  548.  
  549.     ALPHA MODE - send back (status byte, alpha cursor position, GIN
  550.          terminator)
  551.  
  552.     GRAPH MODE - send back (status byte, graphic cursor position, GIN
  553.          terminator)
  554.  
  555.     GIN MODE   - send back (crosshair position, GIN terminator) and
  556.          leave GIN mode
  557.  
  558.  
  559.     status byte    │7│6│5│4│3│2│1│0│
  560.              │ │ │ │ │ │ │ └── 1 always
  561.              │ │ │ │ │ │ └─── margin (0 or 1)
  562.              │ │ │ │ │ └──── mode (0=alpha, 1=graph)
  563.              │ │ │ │ └───── 0 always
  564.              │ │ │ └────── 0 always (configured printer?)
  565.              │ │ └─────── 1 always
  566.              │ └──────── 0 always
  567.              └───────── 0 always
  568.  
  569.  
  570.     cursor position (4 bytes)
  571.  
  572.     highy        │7│6│5│4│3│2│1│0│
  573.              │ │ │ │ │ │ │ └── Bit 7 of y
  574.              │ │ │ │ │ │ └─── Bit 8 of y
  575.              │ │ │ │ │ └──── Bit 9 of y
  576.              │ │ │ │ └───── Bit 10 of y
  577.              │ │ │ └────── Bit 11 of y
  578.              │ │ └─────── 1 always
  579.              │ └──────── 0 always
  580.              └───────── 0 always
  581.  
  582.  
  583.     lowy        │7│6│5│4│3│2│1│0│
  584.              │ │ │ │ │ │ │ └── Bit 2 of y
  585.              │ │ │ │ │ │ └─── Bit 3 of y
  586.              │ │ │ │ │ └──── Bit 4 of y
  587.              │ │ │ │ └───── Bit 5 of y
  588.              │ │ │ └────── Bit 6 of y
  589.              │ │ └─────── 1 always
  590.              │ └──────── 0 always
  591.              └───────── 0 always
  592.  
  593.     highx        │7│6│5│4│3│2│1│0│
  594.              │ │ │ │ │ │ │ └── Bit 7 of x
  595.              │ │ │ │ │ │ └─── Bit 8 of x
  596.              │ │ │ │ │ └──── Bit 9 of x
  597.              │ │ │ │ └───── Bit 10 of x
  598.              │ │ │ └────── Bit 11 of x
  599.              │ │ └─────── 1 always
  600.              │ └──────── 0 always
  601.              └───────── 0 always
  602.  
  603.     lowx        │7│6│5│4│3│2│1│0│
  604.              │ │ │ │ │ │ │ └── Bit 2 of x
  605.              │ │ │ │ │ │ └─── Bit 3 of x
  606.              │ │ │ │ │ └──── Bit 4 of x
  607.              │ │ │ │ └───── Bit 5 of x
  608.              │ │ │ └────── Bit 6 of x
  609.              │ │ └─────── 1 always
  610.              │ └──────── 0 always
  611.              └───────── 0 always
  612.  
  613.     GIN terminator
  614.  
  615.         none    - end GIN mode = 0 (default)
  616.         CR        - end GIN mode = 1
  617.         CR, EOT - end GIN mode = 2
  618.  
  619.     - end GIN mode can be set in conex.ini
  620.  
  621.  
  622. ESC FF             - clear screen
  623. ────────────────────────────────────────────────────────────────────
  624.  
  625.  
  626. ESC SUB        - enter GIN (graphical input) mode
  627. ────────────────────────────────────────────────────────────────────
  628.  
  629.     - crosshair is displayed, which can be moved by cursor keys or
  630.       mouse
  631.  
  632.     - When a character is pressed, it will be transmitted including
  633.       crosshair position and GIN mode is left.
  634.  
  635.     CHAR, crosshair position, GIN terminator
  636.  
  637.     CHAR        character pressed on keyboard
  638.  
  639.  
  640.  
  641.  
  642.                ┌───────────────────────┐
  643.                │ ┌───────────────────┐ │
  644.                │ │ Programmable keys │ │
  645.                │ └───────────────────┘ │
  646.                └───────────────────────┘
  647.  
  648.  
  649.                   Control keys
  650.       ┌───────────┬────────────┬────────────┬────────────┐
  651.       │ NUL  0 ^@ │ BS.   8 ^H │ DLE  16 ^P │ CAN  24 ^X │
  652.       │ SOH  1 ^A │ HT.   9 ^I │ DC1  17 ^Q │ EM.  25 ^Y │
  653.       │ STX  2 ^B │ LF.  10 ^J │ DC2  18 ^R │ SUB  26 ^Z │
  654.       │ ETX  3 ^C │ VT.  11 ^K │ DC3  19 ^S │ ESC  27 ^[ │
  655.       │ EOT  4 ^D │ FF.  12 ^L │ DC4  20 ^T │ FS.  28 ^\ │
  656.       │ ENQ  5 ^E │ CR.  13 ^M │ NAK  21 ^U │ GS.  29 ^] │
  657.       │ ACK  6 ^F │ SO.  14 ^N │ SYN  22 ^V │ RS.  30 ^^ │
  658.       │ BEL  7 ^G │ SI.  15 ^O │ ETB  23 ^W │ US.  31 ^_ │
  659.       └───────────┴────────────┴────────────┴────────────┘
  660.  
  661.  
  662.  
  663.                  Numerical keys
  664.          ┌────────┬─────────┬───────────┬────────────┐
  665.          │          │ + Shift │ + Control │    + Alt     │
  666.          ├────────┼─────────┼───────────┼────────────┤
  667.          │ NK-  - │ #N-  -    │ ^N-  -    │ @N-  -     │
  668.          │ NK+  + │ #N+  +    │ ^N+  +    │ @N+  +     │
  669.          │ NK1  1 │     │ ^N/  /    │ @N/  /     │
  670.          │ NK2  2 │     │ ^N*  *    │ @N*  *     │
  671.          │ NK3  3 │     │        │ @NE  Enter │
  672.          │ NK4  4 │     │        │         │
  673.          │ NK5  5 │ #N5  5    │ ^N5  5    │         │
  674.          │ NK6  6 │     │        │         │
  675.          │ NK7  7 │     │        │         │
  676.          │ NK8  8 │     │        │         │
  677.          │ NK9  9 │     │        │         │
  678.          │ NK.  . │     │        │         │
  679.          └────────┴─────────┴───────────┴────────────┘
  680.  
  681.  
  682.                   Cursor keys
  683.   ┌────────────────┬──────────────┬────────────────┬────────────────┐
  684.   │           │    + Shift   │    + Control   │    + Alt        │
  685.   ├────────────────┼──────────────┼────────────────┼────────────────┤
  686.   │ DN.  down       │ #DN  down      │ ^DN  down       │ @DN  down        │
  687.   │ UP.  up       │ #UP  up      │ ^UP  up       │ @UP  up        │
  688.   │ LT.  left       │ #LT  left      │ ^LT  left       │ @LT  left        │
  689.   │ RT.  right       │ #RT  right   │ ^RT  right       │ @RT  right     │
  690.   │ PDN  page down │ #PD  page dn │ ^PD  page down │ @PD  page down │
  691.   │ PUP  page up   │ #PU  page up │ ^PU  page up   │ @PU  page up   │
  692.   │ HOM  home       │ #HM  home      │ ^HM  home       │ @HM  home        │
  693.   │ END  end       │ #ED  end      │ ^ED  end       │ @ED  end        │
  694.   │ INS  insert    │ #IN  insert  │ ^IN  insert    │ @IN  insert    │
  695.   │ DEL  delete    │ #DL  delete  │ ^DL  delete    │ @DL  delete    │
  696.   │           │          │ ^TB  tab       │ @TB  tab        │
  697.   │           │          │ ^PS  print scn │ @ES  escape    │
  698.   │           │          │           │ @BS  backspace │
  699.   │           │          │           │ @CR  CR        │
  700.   └────────────────┴──────────────┴────────────────┴────────────────┘
  701.  
  702.  
  703.  
  704.                 Alt combinations
  705.      ┌────────────┬────────────┬────────────┬────────────┐
  706.      │ @-A    alt+A │ @-J  alt+J │ @-S  alt+S │ @-1  alt+1 │
  707.      │ @-B    alt+B │ @-K  alt+K │ @-T  alt+T │ @-2  alt+2 │
  708.      │ @-C    alt+C │ @-L  alt+L │ @-U  alt+U │ @-3  alt+3 │
  709.      │ @-D    alt+D │ @-M  alt+M │ @-V  alt+V │ @-4  alt+4 │
  710.      │ @-E    alt+E │ @-N  alt+N │ @-W  alt+W │ @-5  alt+5 │
  711.      │ @-F    alt+F │ @-O  alt+O │ @-X  alt+X │ @-6  alt+6 │
  712.      │ @-G    alt+G │ @-P  alt+P │ @-Y  alt+Y │ @-7  alt+7 │
  713.      │ @-H    alt+H │ @-Q  alt+Q │ @-Z  alt+Z │ @-8  alt+8 │
  714.      │ @-I    alt+I │ @-R  alt+R │ @-0  alt+0 │ @-9  alt+9 │
  715.      └────────────┴────────────┴────────────┴────────────┘
  716.  
  717.  
  718.  
  719.                  Function keys
  720.          ┌──────────┬──────────┬───────────┬──────────┐
  721.          │        │ + Shift  │ + Control │  + Alt   │
  722.          ├──────────┼──────────┼───────────┼──────────┤
  723.          │ F01  F1    │ #F1  F1  │ ^F1  F1   │ @F1  F1  │
  724.          │ F02  F2    │ #F2  F2  │ ^F2  F2   │ @F2  F2  │
  725.          │ F03  F3    │ #F3  F3  │ ^F3  F3   │ @F3  F3  │
  726.          │ F04  F4    │ #F4  F4  │ ^F4  F4   │ @F4  F4  │
  727.          │ F05  F5    │ #F5  F5  │ ^F5  F5   │ @F5  F5  │
  728.          │ F06  F6    │ #F6  F6  │ ^F6  F6   │ @F6  F6  │
  729.          │ F07  F7    │ #F7  F7  │ ^F7  F7   │ @F7  F7  │
  730.          │ F08  F8    │ #F8  F8  │ ^F8  F8   │ @F8  F8  │
  731.          │ F09  F9    │ #F9  F9  │ ^F9  F9   │ @F9  F9  │
  732.          │ F10  F10 │ #10  F10 │ ^10  F10  │ @10  F10 │
  733.          │ F11  F11 │ #11  F11 │ ^11  F11  │ @11  F11 │
  734.          │ F12  F12 │ #12  F12 │ ^12  F12  │ @12  F12 │
  735.          └──────────┴──────────┴───────────┴──────────┘
  736.  
  737.  
  738.  
  739.               Init session string
  740.           ┌────────────────┬────────────────┐
  741.           │ IN0  session 0 │ IN5  session 5 │
  742.           │ IN1  session 1 │ IN6  session 6 │
  743.           │ IN2  session 2 │ IN7  session 7 │
  744.           │ IN3  session 3 │ IN8  session 8 │
  745.           │ IN4  session 4 │ IN9  session 9 │
  746.           └────────────────┴────────────────┘
  747.  
  748.  
  749.  
  750.              ┌──────────────────────────┐
  751.              │    ┌─────────────────────┐ │
  752.              │    │ Format of CONEX.INI │ │
  753.              │    └─────────────────────┘ │
  754.              └──────────────────────────┘
  755.  
  756.  
  757. Format of input parameters in CONEX.INI
  758.  
  759. ***    - decimal number (default=0)
  760. $***    - hexadecimal number (default = 0)
  761. '*      - ASCII character "a"
  762. "***"   - string of characters
  763.  
  764.  - The version number of the INI-file must exactly correspond to version
  765.    number of CONEX, otherwise it will be ignored (without warning).
  766.  
  767.  - Parameters always follow a section header, (esp. "Common
  768.    parameters"), which must exactly be written as indicated.
  769.    If a section header is not found, default values will be taken.
  770.  
  771.  - Parameters must be seperated with ",", the number of fields should
  772.    exactly correspond to the number of parameters of the specified
  773.    section.
  774.  
  775.  - Empty fields are interpreted as 0 in case of a number or as an empty
  776.    string.
  777.  
  778.  - Blanks and carriage returns outside of parameters are ignored.
  779.  
  780.  - Parameter types can be mixed, i.e. "abcd"$66 103"g"'h gives "abcdefgh".
  781.  
  782.  - Parameters in the INI-file are not checked for consistencies, so be
  783.    cautious, if you alter the INI-file directly. Most parameters in
  784.    CONEX.INI can be set in CONEX itself and saved by ALT-S.
  785.  
  786.  
  787. CONEX 6.1
  788.  
  789. Common parameters
  790. ────────────────────────────────────────────────────────────────────
  791.   # meaning
  792.  
  793.   1 Normal character attribute
  794.   2 Bold character attribute
  795.   3 Underlined character attribute
  796.   4 Bold and underline character attribute
  797.   5 Attribute of error messages at bottom of screen
  798.   6 Normal character attribute in status line
  799.   7 Highlighted character attribute in status line
  800.   8 Attribute of macro display in status line
  801.   9 Normal character attribute in help menu
  802.  10 Highlighted character attribute in help menu
  803.  11 Attribute of chapters in help menu
  804.  12 Normal character attribute in windows
  805.  13 Highlighted character attribute in windows
  806.  14 Attribute of instruction line at bottom of line
  807.  15 Attribute of shadow of window
  808.  16 Normal character attribute in listing window
  809.  17 Highlighted characters attribute in listing window
  810.  18 Attribute of number of bytes in listing window
  811.  19 Normal character attribute in file transfer mode
  812.  20 Highlighted character attribute in file transfer mode
  813.  
  814.  21 Graphic card (not used, self detected)
  815.  22 Plot size (0=DIN A4, 1=DIN A3)
  816.  23 Plot aspect
  817.  24 Plot margin in mm
  818.  25 Plot velocity (0 ... 9=0 ... 40)
  819.  26 Insert option when entering strings in windows (0=overwrite, 1=insert)
  820.  27 Append file with Alt-W (0=overwrite, 1=append)
  821.  28 Quote character for character with bit 8 set in kermit protocol
  822.  29 Repeat character in kermit protocol
  823.  30 Help page (0=version/author, 1=default keys, 2=user defined
  824.     keys)
  825.  31 Reserved
  826.  32 Number of lines per page on printer output
  827.  33 IO address of COM1 (0=read from BIOS)
  828.  34 IO address of COM2 (0=read from BIOS)
  829.  35 IO address of COM3 (0=read from BIOS)
  830.  36 IO address of COM4 (0=read from BIOS)
  831.  37 Interrupt number of COM1 (0=not present)
  832.  38 Interrupt number of COM2 (0=not present)
  833.  39 Interrupt number of COM3 (0=not present)
  834.  40 Interrupt number of COM4 (0=not present)
  835.  41 Rotate interrupt controller priority (0=interrupts from serial line
  836.     are served last (default), 1=interrupts from serial line are served
  837.     first) only if port=COM
  838.  42 automatically read ini file (0 = no, 1 = yes)
  839.  43 host table name (only BW/TCP)
  840.  !  end of section
  841.  
  842.  
  843. Session dependent parameters
  844. ────────────────────────────────────────────────────────────────────
  845.  
  846.   1 Host name (max. 16 bytes)
  847.   2 Prompt (max 16 bytes)
  848.   3 Port (0=COM, 1=Int14, 2=LAT, 3=PC/TCP)
  849.   4 Port number (1 - 4)
  850.   5 Baud rate (0=50, 1=75, 2=110, 3=150, 4=200, 5=300, 6=600, 7=1200,
  851.     8=1800, 9=2400, 10=3600, 11=4800, 12=9600, 13=19200, 14=38400,
  852.     15=57600, 16=115200)
  853.   6 Bits/parity (0=7 none, 1=7 even, 2=7 odd, 3=7 mark, 4=8 none,
  854.     5=8 even, 6=8 odd)
  855.   7 Number of stop bits (0=1, 1=2)
  856.   8 Duplex (0=half, 1=full)
  857.   9 Protocol (0=none, 1=hardware, 2=xon/xoff)
  858.  
  859.  10 Outbound kermit packets: packet length
  860.  11 Outbound kermit packets: time out
  861.  12 Outbound kermit packets: number of padding characters
  862.  13 Outbound kermit packets: padding character
  863.  14 Outbound kermit packets: EOL character
  864.  15 Outbound kermit packets: quote control characters
  865.  16 Outbound kermit packets: kermit checksum type (0=1, 1=2, 2=3 bytes CRC)
  866.  17 Outbound kermit packets: kermit quote of repeat character
  867.  18 Outbound kermit packets: kermit packet length
  868.  19 Outbound kermit packets: capabilities mask
  869.  
  870.  20 Inbound kermit packets: packet length
  871.  21 Inbound kermit packets: time out (not used)
  872.  22 Inbound kermit packets: number of padding characters
  873.  23 Inbound kermit packets: padding character
  874.  24 Inbound kermit packets: end of packet character
  875.  25 Inbound kermit packets: control bit quote character
  876.  26 Inbound kermit packets: 8th bit quote character (0 = not activated)
  877.  27 Inbound kermit packets: checksum type
  878.  28 Inbound kermit packets: repeat character (0 = not activated)
  879.  29 Inbound kermit packets: capabilities mask
  880.  
  881.  30 Kermit mode: maximal number of retries
  882.  
  883.  31 Break length (Alt-B)
  884.  32 Trace in kermit protocol
  885.  33 Emulation (0=none, 1=VT102)
  886.  34 Status line type (ALT-L)
  887.  35 Graphic enabled (ALT-G)
  888.  36 End GIN mode (0=none, 1=CR, 2=CR,EOT)
  889.  37 Active character set 1 (0=US, 1=UK, 2=German, 3=graphic, 4=user)
  890.  38 Active character set 2 (0=Multinational, 1=user)
  891.  !  end of section
  892.  
  893.   - Parameters (1 - 38 !) must be repeated for every session (10 times)
  894.  
  895.  
  896. Keyboard translation
  897. ────────────────────────────────────────────────────────────────────
  898.                 ─┐
  899.   1 Key to be redefined ()   │
  900.   2 Label of key         ├─ repeat this part for every key definition
  901.   3 New definition of key    │
  902.   ! end of key definition    │
  903.                 ─┘
  904.   ! end of keyboard translation section
  905.  
  906.  
  907. Dial sequence
  908. ────────────────────────────────────────────────────────────────────
  909.  
  910.   1 Prefix to dial number
  911.   2 Suffix to dial number
  912.   3 Messages returned by modem seperated with |
  913.     (1st part answer if connected, all other part if connection failed)
  914.   ! end of section
  915.  
  916.   - parameter 1 and 2 may contain <W...> or <R...> commands.
  917.  
  918.  
  919. User defined character set
  920. ────────────────────────────────────────────────────────────────────
  921.   1 String with character map from 32 to 127. (Alt-M, char set 1: User)
  922.   2 String with character map from 128 to 255. (Alt-M, char set 2: User)
  923.   ! end of section
  924.  
  925.   - if the specified string is shorter than the given range, it is filled
  926.     with characters from the default character set.
  927.  
  928.  
  929.